package cn.jr.service;

import cn.jr.pojo.Order;

import java.util.ArrayList;

/*主要参与者是订单*/

//订单表
@SuppressWarnings("all")
public interface IOrderService {

    //添加订单
    boolean addOrder(String orderNumber,String orderTime);
    //删除订单？？
    /*boolean removeOrder(int id);*/

    //查询 一条订单 by 订单编号
    Order getAnOrderbyOrderNumber(String orderNumber);

    //查询 订单表主键 by 订单编号
    int getOrderIdByOrderNumber(String orderNumber);

    //查询 一条订单 by 订单表主键
    Order getOrderById(int orderId);

    //更新数据 --加钱
    boolean changeOrder(double waresAllPrice,double orderReallyPrice,int orderId);

    //查询全部
    ArrayList<Order> getAllOrderProject();

}
